Skip to content

Conversation

@ashddev
Copy link
Contributor

@ashddev ashddev commented Dec 21, 2025

Fixes #3954

This PR updates the NVIDIA hardware install script to install the legacy NVIDIA driver for older GPUs (Pascal (10xx), Maxwell (9xx), Kepler (7xx)), as suggested in the recent Arch Linux announcement.

@ashddev ashddev changed the title fix(nvidia): install legacy NVIDIA driver older GPUs fix(nvidia): install legacy NVIDIA driver on older GPUs Dec 21, 2025
@dhh dhh requested a review from ryanrhughes December 22, 2025 21:56
@Kn0ax
Copy link
Contributor

Kn0ax commented Dec 23, 2025

Should we inform users whether their graphics card is currently supported by NVIDIA or by the Arch team?

Right now, the script assumes that if a user does not have a GPU newer than the Pascal architecture, it will get the 580xx driver, which is not supported by older cards, and users are likely going to be unaware of this.

@Kn0ax
Copy link
Contributor

Kn0ax commented Dec 23, 2025

this should handle migration for mentioned cards
(sorry, i couldn't add this as a commit to current branch for some reason.)

echo "Migrate legacy NVIDIA GPUs to nvidia-580xx driver"

# Skip if no nvidia packages are installed
if ! pacman -Qq 2>/dev/null | grep -q '^nvidia'; then
  exit 0
fi

# Skip if its a "modern" gpu
if lspci | grep -iE 'nvidia. *(RTX [2-9][0-9]|GTX 16)'; then
  exit 0
fi

# Remove current nvidia driver packages
omarchy-pkg-drop nvidia nvidia-dkms nvidia-utils lib32-nvidia-utils

# Install 580xx driver from AUR
yay -S --needed --noconfirm nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils

@ashddev
Copy link
Contributor Author

ashddev commented Dec 23, 2025

Should we inform users whether their graphics card is currently supported by NVIDIA or by the Arch team?

Right now, the script assumes that if a user does not have a GPU newer than the Pascal architecture, it will get the 580xx driver, which is not supported by older cards, and users are likely going to be unaware of this.

Thanks for taking the time to review my PR!

Yeah it may be simplest to just inform the user if their GPU is legacy and unsupported based on this status table and direct them to the wiki if so.

@ryanrhughes ryanrhughes changed the base branch from master to dev December 28, 2025 01:57
@Kn0ax
Copy link
Contributor

Kn0ax commented Dec 28, 2025

@ryanrhughes nvidia-580xx-dkms and related packages are only available on AUR. Therefore they need to be installed using yay.

Also, my intention with this script was not only for Omarchy; rather, it was meant to be a general script to help people who want to use Hyprland + Arch with Nvidia cards. (Also for those who wants to install omarchy manually)
If it’s not a problem for you, I’d like it to stay that way. The current changes make the script too specific to Omarchy. [idc too much about credit at all, although it was cool to see in omarchy ngl :')]

Thanks for all your hard work again.

@ryanrhughes
Copy link
Collaborator

@Kn0ax the 580xx packages were added to OPR. omacom-io/omarchy-pkgs@d87dd64 We only install packages from there so that we can ensure they're available in the ISO for offline installations. They'll get built and released there so they're available before we release this. 🙂

Also, my intention with this script was not only for Omarchy; rather, it was meant to be a general script to help people who want to use Hyprland + Arch with Nvidia cards. (Also for those who wants to install omarchy manually)

I definitely have an appreciation for this idea but generally speaking; this becomes an incredibly slippery slope and is outside of the scope of the install file, I believe.

That would need to live in a different utility somewhere as the files in /install really only execute during initial install and we intentionally keep those incredibly trim and opinionated so they're fast, error-free, and predictable.

As it sits now, it would work well for anyone whether they were using the ISO or manual install method.

idc too much about credit at all
You absolutely get the credit for the work here. We just have to keep the files clean from excess comment blocks or it'd get to be a bit of a mess in here. 😅

@Kn0ax
Copy link
Contributor

Kn0ax commented Dec 28, 2025

Thanks for the info about OPR. Last time I checked, OPR was for Omarchy-specific custom packages (like the Chromium fork, etc.), so good to know.

I’ll probably make a separate gist for the "generalized" script.

Pulling it from here was a nice little party trick for me :')
<3

@ryanrhughes
Copy link
Collaborator

The original setup was just to host some extras but as Arch / AUR has faced continual attacks, we upped it to house all packages we rely on for Omarchy. This gives us more stability and control and even allows us to maintain our stable vs edge setup with the AUR packages as well.

@ryanrhughes ryanrhughes merged commit cd224e7 into basecamp:dev Dec 28, 2025
@dhh dhh mentioned this pull request Jan 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NVIDIA hardware install script installs unsupported driver on Pascal and older GPUs

4 participants